{include file="$MODULES_DIR/install/templates/layout_top.html"}
{t assignTo=title}Administrator{/t}
{include file="$MODULES_DIR/install/templates/layout_tabs.html" step=5 title=$title}
<p>{t}You must create the first account. This account will have full administration rights and can't be deleted (but can be modified). This account will allow you to configure your website. All fields are required.{/t}</p>
<form method="post" action="">
    <table class="form">
        <tr><th colspan="2">{t}Administrator parameters{/t}</th></tr>
        <tr><td style="width:200px;">{t}Login{/t}</td><td><input type="text" name="form[login]" {if isset($value.login)}value="{$value.login}"{/if} /></td></tr>
        <tr><td>{t}Password{/t}</td><td><input type="password" name="form[password]" {if isset($value.password)}value="{$value.password}"{/if} /></td></tr>
        <tr><td>{t}Password confirmation{/t}</td><td><input type="password" name="form[passwordConfirm]" {if isset($value.passwordConfirm)}value="{$value.passwordConfirm}"{/if} /></td></tr>
        <tr><td>{t}First name{/t}</td><td><input type="text" name="form[firstName]" {if isset($value.firstName)}value="{$value.firstName}"{/if} /></td></tr>
        <tr><td>{t}Last name{/t}</td><td><input type="text" name="form[lastName]" {if isset($value.lastName)}value="{$value.lastName}"{/if} /></td></tr>
        <tr><td>{t}E-mail{/t}</td><td><input type="text" name="form[email]" {if isset($value.email)}value="{$value.email}"{/if} /></td></tr>
        <tr>
            <td>{t}Backend language{/t}</td>
            <td>
                <select name="form[lang]">
                    {foreach from=$langs item=lang}
                    <option value="{$lang.id}" {if isset($value.lang) && $value.lang == $lang.id}selected="selected"{/if}>{$lang.label}</option>
                    {/foreach}
                </select>
            </td>
        </tr>
    </table>

{if isset($errors) && count($errors) > 0}
<p class="errorDetail">
    {if isset($errors.required)}
        {t}All fields are required, please fill in all fields.{/t}
    {/if}
    {if isset($errors.passwordLength)}
        {t}Password must have at least 5 characters{/t}
    {/if}
    {if isset($errors.passwordConfirm)}
        {t}The password confirmation is not the same as password.{/t}
    {/if}
</p>
{/if}
    <div class="centeredButton"><button class="bigGreenButton" type="submit">{t}Continue{/t} <img src="{$URL_RELATIVE}/bo/install/media/next.png" alt="" /></button></div>
</form>
{include file="$MODULES_DIR/install/templates/layout_bottom.html"}